package jdt.geom;

/**
 * A "tag" class which represents a vector
 * @author Shay
 *
 */
public class Vector extends Point {

	/**
	 * Get the vector corresponding to the argument points
	 * @param from The stating point of the vector
	 * @param to The ending point of the vector
	 * @return a {@link Vector}
	 */
	public static Vector createVector(Point from, Point to){
		return new Vector(to.x - from.x, to.y - from.y);
	}
	
	/* --- Ctors. --- */
	
	/**
	 * Construct a vector using its coordinates
	 * @param x The X coordinate of the vector
	 * @param y The Y coordinate of the vector
	 */
	public Vector(double x, double y) {
		super(x, y);
	}

}
